package hn.sigit.logic.viewer.toolbox;

import hn.sigit.model.commons.IRight;
import hn.sigit.model.hnd.ladmshadow.Right;
import hn.sigit.model.ladm.administrative.LA_Right;
import hn.sigit.model.ladm.administrative.LA_RightType;
import hn.sigit.model.ladm.external.ExtParty;
import hn.sigit.util.ShareValue;

public class ParcelRight extends ParcelRRR<LA_RightType> {
	public ParcelRight(Long presentationId, ExtParty extParty) {
		//if presentationId is null then we use shadow schema because we are in
		//the context of a municipal transaction
		super(presentationId,
				extParty,
				null,
				presentationId != null ? Right.newRight(0, presentationId, false, false) : new LA_Right());
	}
	public ParcelRight(Long presentationId, ExtParty extParty, LA_RightType rrrType, ShareValue share, IRight right) {
		super(presentationId,
				extParty,
				rrrType,
				share,
				right);
	}
}
